package com.readfeed.app.model;

import java.util.ArrayList;
import java.util.List;

public class Channel {
	//TODO may be add unique id or may be not necessery
	private long mId;
	private String mTitle;
	private String mDescription;
	private String mUri;
	private long mCategoryId;
	private List<Feed> mItems;
	private long mUpdate;
	
	public Channel(){
		mTitle = null;
		mDescription = null;
		mUri = null;
		mCategoryId = -1;
		mItems = new ArrayList<Feed>();
		mUpdate = -1;
	}
	
	// all getters
	public long getId(){
		return this.mId;
	}
	
	public long getLastUpdate(){
		return this.mUpdate;
	}
	
	public List<Feed> getItems(){
		return this.mItems;
	}
	
	public String getTitle(){
		return this.mTitle;
	}
	
	public String getDescription(){
		return this.mDescription;
	}
	
	public long getCategoryId(){
		return this.mCategoryId;
	}
	
	public String getUri(){
		return this.mUri;
	}
	
	// all setters
	public void setId(long id){
		this.mId = id;
	}

	public void setUpdateTime(long updateTime){
		this.mUpdate = updateTime;
	}
	
	public void setItems(List<Feed> feeds){
		this.mItems = feeds;
	}
	
	public void setTitle(String title){
		this.mTitle = title;
	}
	
	public void setDescription(String description){
		this.mDescription = description;
	}
	
	public void setCategoryId(long id){
		this.mCategoryId = id;
	}
	
	public void setUri(String uri){
		this.mUri = uri;
	}
}
